package cn.momoky.ccool.mapper;

import cn.momoky.ccool.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {

    void add(User user);

    User findByNameOrEmail(@Param("name") String name, @Param("email") String email);
}
